package _1ChapterOne._4ReplaceTempWithQuery;

public class Test1 extends BaseClass {
    public double getPrice() {
        int basePrice = _itemPrice * _quantity;
        double discountFactor;
        if (basePrice > 1000) {
            discountFactor = 0.95;
        } else {
            discountFactor = 0.98;
        }
        return basePrice * discountFactor;
    }
}
